home *** CD-ROM | disk | FTP | other *** search
- *** 1.7 1992/08/14 17:36:48
- --- Changelo 1992/11/08 00:37:14
- ***************
- *** 263,265 ****
- --- 263,278 ----
- new target for above.
-
- ---------------------------- Patchlevel 14 -----------------------------------
- +
- + dummy.c:: ++jrb
- + break up file into two seperate files, dummy 1 and 2 seperating
- + ctor from dtor for the case in which a program only has
- + a one a global constructor or destructor.
- +
- + mincl:: ++jrb
- + adjust atrgets for dummy[12].o
- +
- + gnuaux.c:: ++jrb
- + dont pass a zero size request to malloc.
- +
- + ---------------------------- Patchlevel 15 -----------------------------------
- *** 1.9 1992/08/14 17:36:48
- --- PatchLev.h 1992/11/08 00:37:14
- ***************
- *** 1,5 ****
-
- ! #define PatchLevel "14"
-
- /*
- * the Patch Level above is to identify the version
- --- 1,5 ----
-
- ! #define PatchLevel "15"
-
- /*
- * the Patch Level above is to identify the version
- *** 1.3 1992/08/14 17:36:48
- --- gnuaux.c 1992/11/08 00:37:20
- ***************
- *** 25,31 ****
- {
- char *p;
-
- ! p = (char *)malloc (sz);
- if (p == 0)
- (*__new_handler) ();
- return p;
- --- 25,31 ----
- {
- char *p;
-
- ! p = (char *)malloc (sz ? sz : (size_t)1);
- if (p == 0)
- (*__new_handler) ();
- return p;
- *** 1.7 1992/08/14 17:36:48
- --- mincl 1992/11/08 00:37:24
- ***************
- *** 21,31 ****
- igetsb.cc iodtoa.cc outfloat.cc
-
- #
- ! # NOTE:: dummy.o MUST be the last object on this list. otherwise you'll
- # end up with multiple definitions of global ctor/dtors
- #
- OBJ = gnulib3.o _bin_del.o _bin_new.o _bin_nw.o _bin_nh.o ident.o \
- ! $(LIBSRC:.cc=.o) $(IOSRC:.cc=.o) dummy.o
-
- all: $(ALL)
- all020: $(ALL020)
- --- 21,31 ----
- igetsb.cc iodtoa.cc outfloat.cc
-
- #
- ! # NOTE:: dummy[12].o MUST be the last objects on this list. otherwise you'll
- # end up with multiple definitions of global ctor/dtors
- #
- OBJ = gnulib3.o _bin_del.o _bin_new.o _bin_nw.o _bin_nh.o ident.o \
- ! $(LIBSRC:.cc=.o) $(IOSRC:.cc=.o) dummy1.o dummy2.o
-
- all: $(ALL)
- all020: $(ALL020)
- *** 1.1 1992/03/22 07:42:32
- --- xcomplex.cc 1992/11/08 00:37:31
- ***************
- *** 47,53 ****
- /* from romine@xagsun.epm.ornl.gov */
- Complex /* const */ operator / (const Complex& x, const Complex& y)
- {
- ! double den = abs(y.real()) + abs(y.imag());
- if (den == 0.0) x.error ("Attempted division by zero.");
- double xrden = x.real() / den;
- double xiden = x.imag() / den;
- --- 47,53 ----
- /* from romine@xagsun.epm.ornl.gov */
- Complex /* const */ operator / (const Complex& x, const Complex& y)
- {
- ! double den = fabs(y.real()) + fabs(y.imag());
- if (den == 0.0) x.error ("Attempted division by zero.");
- double xrden = x.real() / den;
- double xiden = x.imag() / den;
- ***************
- *** 60,66 ****
-
- Complex& Complex::operator /= (const Complex& y)
- {
- ! double den = abs(y.real()) + abs(y.imag());
- if (den == 0.0) error ("Attempted division by zero.");
- double xrden = re / den;
- double xiden = im / den;
- --- 60,66 ----
-
- Complex& Complex::operator /= (const Complex& y)
- {
- ! double den = fabs(y.real()) + fabs(y.imag());
- if (den == 0.0) error ("Attempted division by zero.");
- double xrden = re / den;
- double xiden = im / den;
- ***************
- *** 166,172 ****
- return Complex(0.0, 0.0);
- else
- {
- ! double s = sqrt((abs(x.real()) + hypot(x.real(), x.imag())) * 0.5);
- double d = (x.imag() / s) * 0.5;
- if (x.real() > 0.0)
- return Complex(s, d);
- --- 166,172 ----
- return Complex(0.0, 0.0);
- else
- {
- ! double s = sqrt((fabs(x.real()) + hypot(x.real(), x.imag())) * 0.5);
- double d = (x.imag() / s) * 0.5;
- if (x.real() > 0.0)
- return Complex(s, d);
- *** 1.3 1992/07/17 18:24:43
- --- xstring.cc 1992/11/08 00:37:37
- ***************
- *** 167,172 ****
- --- 167,178 ----
- return rep;
- }
-
- + // allocate, char
- + StrRep* Schar(char c)
- + {
- + return Salloc(0, &c, 1, 1);
- + }
- +
- // reallocate: Given the initial allocation scheme, it will
- // generally be faster in the long run to get new space & copy
- // than to call realloc
- ***************
- *** 1324,1327 ****
- if (!v) S.error("SubString invariant failure");
- return v;
- }
- -
- --- 1330,1332 ----
-